<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets the deadlock retry count</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.sybase-data-seek.html">sybase_data_seek</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.sybase-fetch-array.html">sybase_fetch_array</a></div>
 <div class="up"><a href="ref.sybase.html">Sybase 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.sybase-deadlock-retry-count" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sybase_deadlock_retry_count</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5)</p><p class="refpurpose"><span class="refname">sybase_deadlock_retry_count</span> &mdash; <span class="dc-title">Sets the deadlock retry count</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.sybase-deadlock-retry-count-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>sybase_deadlock_retry_count</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$retry_count</code></span>
   )</div>

  <p class="para rdfs-comment">
   Using <span class="function"><strong>sybase_deadlock_retry_count()</strong></span>, the number of retries
   can be defined in cases of deadlocks. By default, every deadlock is retried
   an infinite number of times or until the process is killed by Sybase, the
   executing script is killed (for instance, by <span class="function"><a href="function.set-time-limit.html" class="function">set_time_limit()</a></span>)
   or the query succeeds.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.sybase-deadlock-retry-count-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">retry_count</code></em></dt>

     <dd>

      <p class="para">
       <table class="doctable table">
        <caption><strong>Values for retry_count</strong></caption>
        
         <tbody class="tbody">
          <tr>
           <td>-1</td>
           <td>Retry forever (default)</td>
          </tr>

          <tr>
           <td>0</td>
           <td>Do not retry</td>
          </tr>

          <tr>
           <td>n</td>
           <td>Retry n times</td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sybase-deadlock-retry-count-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.sybase-deadlock-retry-count-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">此函数仅适用于对 Sybase 使用 CT 库接口，而不适用于 DB 库。</span></p></blockquote>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.sybase-data-seek.html">sybase_data_seek</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.sybase-fetch-array.html">sybase_fetch_array</a></div>
 <div class="up"><a href="ref.sybase.html">Sybase 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
